package com.laiketui.order.api.feign.wechatPay;

import com.laiketui.order.api.params.wechatPay.PaymentParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@FeignClient(value = "order")
public interface WeChatPayOrderFeign {

    /**
     * 支付微信订单
     */
    @PostMapping("/order/v2/wechatPay/pay")
    Map<String,String> pay(@RequestBody PaymentParams params);

    @PostMapping("/order/v2/wechatPay/weChatNotifyV2")
    String weChatNotifyV2(@RequestBody HttpServletRequest request);

}
